home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / info / xemacs.info-1.z / xemacs.info-1
Encoding:
GNU Info File  |  1998-05-21  |  46.0 KB  |  1,037 lines

  1. This is Info file ../../info/xemacs.info, produced by Makeinfo version
  2. 1.68 from the input file xemacs.texi.
  3.  
  4.    This file documents the XEmacs editor.
  5.  
  6.    Copyright (C) 1985, 1986, 1988 Richard M. Stallman.  Copyright (C)
  7. 1991, 1992, 1993, 1994 Lucid, Inc.  Copyright (C) 1993, 1994 Sun
  8. Microsystems, Inc.  Copyright (C) 1995 Amdahl Corporation.
  9.  
  10.    Permission is granted to make and distribute verbatim copies of this
  11. manual provided the copyright notice and this permission notice are
  12. preserved on all copies.
  13.  
  14.    Permission is granted to copy and distribute modified versions of
  15. this manual under the conditions for verbatim copying, provided also
  16. that the sections entitled "The GNU Manifesto", "Distribution" and "GNU
  17. General Public License" are included exactly as in the original, and
  18. provided that the entire resulting derived work is distributed under the
  19. terms of a permission notice identical to this one.
  20.  
  21.    Permission is granted to copy and distribute translations of this
  22. manual into another language, under the above conditions for modified
  23. versions, except that the sections entitled "The GNU Manifesto",
  24. "Distribution" and "GNU General Public License" may be included in a
  25. translation approved by the author instead of in the original English.
  26.  
  27. 
  28. File: xemacs.info,  Node: Top,  Next: License,  Up: (dir)
  29.  
  30.    The XEmacs Editor *****************
  31.  
  32.    XEmacs is the extensible, customizable, self-documenting real-time
  33. display editor.  This Info file describes how to edit with Emacs and
  34. some of how to customize it, but not how to extend it.  It corresponds
  35. to XEmacs version 20.0.
  36.  
  37.    This manual is intended as a detailed reference to XEmacs.  If you
  38. are looking for an introductory manual, see the New User's Guide.
  39.  
  40. * Menu:
  41.  
  42. * License::     The GNU General Public License gives you permission
  43.         to redistribute XEmacs on certain terms; and also
  44.         explains that there is no warranty.
  45. * Distrib::     How to get XEmacs.
  46. * Intro::       An introduction to XEmacs concepts.
  47. * Glossary::    The glossary.
  48. * Manifesto::   What's GNU?  Gnu's Not Unix!
  49.  
  50. Indices, nodes containing large menus
  51. * Key Index::      An item for each standard XEmacs key sequence.
  52. * Command Index::  An item for each command name.
  53. * Variable Index:: An item for each documented variable.
  54. * Concept Index::  An item for each concept.
  55.  
  56. Important General Concepts
  57. * Frame::      How to interpret what you see on the screen.
  58. * Keystrokes::  Keyboard gestures XEmacs recognizes.
  59. * Pull-down Menus::
  60.                 The XEmacs Pull-down Menus available under X.
  61. * Entering Emacs::
  62.                 Starting Emacs from the shell.
  63. * Exiting::     Stopping or killing XEmacs.
  64. * Command Switches::
  65.                 Hairy startup options.
  66.  
  67. Fundamental Editing Commands
  68. * Basic::       The most basic editing commands.
  69. * Undo::        Undoing recently made changes in the text.
  70. * Minibuffer::  Entering arguments that are prompted for.
  71. * M-x::         Invoking commands by their names.
  72. * Help::        Commands for asking XEmacs about its commands.
  73.  
  74. Important Text-Changing Commands
  75. * Mark::        The mark: how to delimit a "region" of text.
  76. * Mouse Selection::
  77.                 Selecting text with the mouse.
  78. * Additional Mouse Operations::
  79.                 Other operations available from the mouse.
  80. * Killing::     Killing text.
  81. * Yanking::     Recovering killed text.  Moving text.
  82. * Using X Selections::
  83.                 Using primary selection, cut buffers, and highlighted regions.
  84. * Accumulating Text::
  85.                 Other ways of copying text.
  86. * Rectangles::  Operating on the text inside a rectangle on the screen.
  87. * Registers::   Saving a text string or a location in the buffer.
  88. * Display::     Controlling what text is displayed.
  89. * Search::      Finding or replacing occurrences of a string.
  90. * Fixit::       Commands especially useful for fixing typos.
  91.  
  92. Larger Units of Text
  93. * Files::       All about handling files.
  94. * Buffers::     Multiple buffers; editing several files at once.
  95. * Windows::     Viewing two pieces of text at once.
  96. * Mule::    Using world scripts.
  97.  
  98. Advanced Features
  99. * Major Modes:: Text mode vs. Lisp mode vs. C mode ...
  100. * Indentation:: Editing the white space at the beginnings of lines.
  101. * Text::        Commands and modes for editing English.
  102. * Programs::    Commands and modes for editing programs.
  103. * Running::     Compiling, running and debugging programs.
  104. * Abbrevs::     How to define text abbreviations to reduce
  105.                  the number of characters you must type.
  106. * Picture::     Editing pictures made up of characters
  107.                  using the quarter-plane screen model.
  108. * Sending Mail:: Sending mail in XEmacs.
  109. * Reading Mail:: Reading mail in XEmacs.
  110. * Calendar/Diary:: A Calendar and diary facility in XEmacs.
  111. * Sorting::    Sorting lines, paragraphs or pages within XEmacs.
  112. * Shell::       Executing shell commands from XEmacs.
  113. * Narrowing::   Restricting display and editing to a portion
  114.                  of the buffer.
  115. * Hardcopy::    Printing buffers or regions.
  116. * Recursive Edit::
  117.                 A command can allow you to do editing
  118.                  "within the command".  This is called a
  119.                  `recursive editing level'.
  120. * Dissociated Press::  Dissociating text for fun.
  121. * CONX::           A different kind of dissociation.
  122. * Amusements::         Various games and hacks.
  123. * Emulation::           Emulating some other editors with XEmacs.
  124. * Customization::      Modifying the behavior of XEmacs.
  125.  
  126. Recovery from Problems.
  127. * Quitting::    Quitting and aborting.
  128. * Lossage::     What to do if XEmacs is hung or malfunctioning.
  129. * Bugs::        How and when to report a bug.
  130.  
  131. Here are some other nodes which are really inferiors of the ones
  132. already listed, mentioned here so you can get to them in one step:
  133.  
  134.  -- The Detailed Node Listing --
  135.  
  136. The Organization of the Frame
  137.  
  138. * Point::            The place in the text where editing commands operate.
  139. * Echo Area::           Short messages appear at the bottom of the frame.
  140. * Mode Line::            Interpreting the mode line.
  141. * XEmacs under X::      Some information on using XEmacs under the X
  142.                         Window System.
  143.  
  144. Keystrokes
  145.  
  146. * Intro to Keystrokes::      Keystrokes as building blocks of key sequences.
  147. * Representing Keystrokes::  Using lists of modifiers and keysyms to
  148.                              represent keystrokes.
  149. * Key Sequences::            Combine key strokes into key sequences you can
  150.                              bind to commands.
  151. * String Key Sequences::     Available for upward compatibility.
  152. * Meta Key::                 Using <ESC> to represent <Meta>
  153. * Super and Hyper Keys::     Adding modifier keys on certain keyboards.
  154. * Character Representation:: How characters appear in XEmacs buffers.
  155. * Commands::                 How commands are bound to key sequences.
  156.  
  157. Pull-down Menus
  158.  
  159. * File Menu::           Items on the File menu.
  160. * Edit Menu::           Items on the Edit menu.
  161. * Apps Menu::        Items on the Apps menu.
  162. * Options Menu::        Items on the Options menu.
  163. * Buffers Menu::        Information about the Buffers menu.
  164. * Tools Menu::        Items on the Tools menu.
  165. * Help Menu::           Items on the Help menu.
  166. * Menu Customization::  Adding and removing menu items and related
  167.                         operations.
  168.  
  169. Basic Editing Commands
  170.  
  171. * Blank Lines::        Commands to make or delete blank lines.
  172. * Continuation Lines:: Lines too wide for the frame.
  173. * Position Info::      What page, line, row, or column is point on?
  174. * Arguments::           Numeric arguments for repeating a command.
  175.  
  176. The Minibuffer
  177.  
  178. * File: Minibuffer File.  Entering file names with the minibuffer.
  179. * Edit: Minibuffer Edit.  How to edit in the minibuffer.
  180. * Completion::          An abbreviation facility for minibuffer input.
  181. * Repetition::          Re-executing commands that used the minibuffer.
  182.  
  183. The Mark and the Region
  184.  
  185. * Setting Mark::    Commands to set the mark.
  186. * Using Region::    Summary of ways to operate on contents of the region.
  187. * Marking Objects::    Commands to put region around textual units.
  188. * Mark Ring::       Previous mark positions saved so you can go back there.
  189.  
  190. Yanking
  191.  
  192. * Kill Ring::       Where killed text is stored.  Basic yanking.
  193. * Appending Kills:: Several kills in a row all yank together.
  194. * Earlier Kills::   Yanking something killed some time ago.
  195.  
  196. Using X Selections
  197.  
  198. * X Clipboard Selection::         Pasting to the X clipboard.
  199. * X Selection Commands::    Other operations on the selection.
  200. * X Cut Buffers::           X cut buffers are available for compatibility.
  201. * Active Regions::          Using zmacs-style highlighting of the
  202.                              selected region.
  203.  
  204. Registers
  205.  
  206. * RegPos::    Saving positions in registers.
  207. * RegText::   Saving text in registers.
  208. * RegRect::   Saving rectangles in registers.
  209.  
  210. Controlling the Display
  211.  
  212. * Scrolling::               Moving text up and down in a window.
  213. * Horizontal Scrolling::   Moving text left and right in a window.
  214. * Selective Display::      Hiding lines with lots of indentation.
  215. * Display Vars::           Information on variables for customizing display.
  216.  
  217. Searching and Replacement
  218.  
  219. * Incremental Search::     Search happens as you type the string.
  220. * Non-Incremental Search:: Specify entire string and then search.
  221. * Word Search::            Search for sequence of words.
  222. * Regexp Search::          Search for match for a regexp.
  223. * Regexps::                Syntax of regular expressions.
  224. * Search Case::            To ignore case while searching, or not.
  225. * Replace::                Search, and replace some or all matches.
  226. * Other Repeating Search:: Operating on all matches for some regexp.
  227.  
  228. Replacement Commands
  229.  
  230. * Unconditional Replace::  Replacing all matches for a string.
  231. * Regexp Replace::         Replacing all matches for a regexp.
  232. * Replacement and Case::   How replacements preserve case of letters.
  233. * Query Replace::          How to use querying.
  234.  
  235. Commands for Fixing Typos
  236.  
  237. * Kill Errors:: Commands to kill a batch of recently entered text.
  238. * Transpose::   Exchanging two characters, words, lines, lists...
  239. * Fixing Case:: Correcting case of last word entered.
  240. * Spelling::    Apply spelling checker to a word, or a whole file.
  241.  
  242. File Handling
  243.  
  244. * File Names::       How to type and edit file name arguments.
  245. * Visiting::         Visiting a file prepares XEmacs to edit the file.
  246. * Saving::           Saving makes your changes permanent.
  247. * Reverting::        Reverting cancels all the changes not saved.
  248. * Auto Save::        Auto Save periodically protects against loss of data.
  249. * Version Control::  Version control systems (RCS and SCCS).
  250. * ListDir::          Listing the contents of a file directory.
  251. * Comparing Files::  Finding where two files differ.
  252. * Dired::            "Editing" a directory to delete, rename, etc.
  253.                      the files in it.
  254. * Misc File Ops::    Other things you can do on files.
  255.  
  256. Saving Files
  257.  
  258. * Backup::       How XEmacs saves the old version of your file.
  259. * Interlocking:: How XEmacs protects against simultaneous editing
  260.                   of one file by two users.
  261.  
  262. Backup Files
  263.  
  264. * Names: Backup Names.        How backup files are named;
  265.                 Choosing single or numbered backup files.
  266. * Deletion: Backup Deletion.    XEmacs deletes excess numbered backups.
  267. * Copying: Backup Copying.    Backups can be made by copying or renaming.
  268.  
  269. Auto-Saving: Protection Against Disasters
  270.  
  271. * Files: Auto Save Files.
  272. * Control: Auto Save Control.
  273. * Recover::        Recovering text from auto-save files.
  274.  
  275. Version Control
  276.  
  277. * Concepts of VC::        Basic version control information;
  278.                   checking files in and out.
  279. * Editing with VC::        Commands for editing a file maintained
  280.                   with version control.
  281. * Variables for Check-in/out::    Variables that affect the commands used
  282.                   to check files in or out.
  283. * Log Entries::            Logging your changes.
  284. * Change Logs and VC::        Generating a change log file from log
  285.                   entries.
  286. * Old Versions::        Examining and comparing old versions.
  287. * VC Status::            Commands to view the VC status of files and
  288.                   look at log entries.
  289. * Renaming and VC::        A command to rename both the source and
  290.                   master file correctly.
  291. * Snapshots::            How to make and use snapshots, a set of
  292.                   file versions that can be treated as a unit.
  293. * Version Headers::        Inserting version control headers into
  294.                   working files.
  295.  
  296. Snapshots
  297.  
  298. * Making Snapshots::        The snapshot facilities.
  299. * Snapshot Caveats::        Things to be careful of when using snapshots.
  300.  
  301. Dired, the Directory Editor
  302.  
  303. * Enter: Dired Enter.         How to invoke Dired.
  304. * Edit: Dired Edit.           Editing the Dired buffer.
  305. * Deletion: Dired Deletion.   Deleting files with Dired.
  306. * Immed: Dired Immed.         Other file operations through Dired.
  307.  
  308. Using Multiple Buffers
  309.  
  310. * Select Buffer::   Creating a new buffer or reselecting an old one.
  311. * List Buffers::    Getting a list of buffers that exist.
  312. * Misc Buffer::     Renaming; changing read-onliness; copying text.
  313. * Kill Buffer::     Killing buffers you no longer need.
  314. * Several Buffers:: How to go through the list of all buffers
  315.                      and operate variously on several of them.
  316.  
  317. Multiple Windows
  318.  
  319. * Basic Window::     Introduction to XEmacs windows.
  320. * Split Window::     New windows are made by splitting existing windows.
  321. * Other Window::     Moving to another window or doing something to it.
  322. * Pop Up Window::    Finding a file or buffer in another window.
  323. * Change Window::    Deleting windows and changing their sizes.
  324.  
  325. Major Modes
  326.  
  327. * Choosing Modes::     How major modes are specified or chosen.
  328.  
  329. Indentation
  330.  
  331. * Indentation Commands:: Various commands and techniques for indentation.
  332. * Tab Stops::            You can set arbitrary "tab stops" and then
  333.                          indent to the next tab stop when you want to.
  334. * Just Spaces::          You can request indentation using just spaces.
  335.  
  336. Commands for Human Languages
  337.  
  338. * Text Mode::   The major modes for editing text files.
  339. * Nroff Mode::  The major mode for editing input to the formatter nroff.
  340. * TeX Mode::    The major modes for editing input to the formatter TeX.
  341. * Outline Mode:: The major mode for editing outlines.
  342. * Words::       Moving over and killing words.
  343. * Sentences::   Moving over and killing sentences.
  344. * Paragraphs::    Moving over paragraphs.
  345. * Pages::    Moving over pages.
  346. * Filling::     Filling or justifying text
  347. * Case::        Changing the case of text
  348.  
  349. TeX Mode
  350.  
  351. * Editing: TeX Editing.   Special commands for editing in TeX mode.
  352. * Printing: TeX Print.    Commands for printing part of a file with TeX.
  353.  
  354. Outline Mode
  355.  
  356. * Format: Outline Format.      What the text of an outline looks like.
  357. * Motion: Outline Motion.      Special commands for moving through outlines.
  358. * Visibility: Outline Visibility. Commands to control what is visible.
  359.  
  360. Filling Text
  361.  
  362. * Auto Fill::      Auto Fill mode breaks long lines automatically.
  363. * Fill Commands:: Commands to refill paragraphs and center lines.
  364. * Fill Prefix::   Filling when every line is indented or in a comment, etc.
  365.  
  366. Editing Programs
  367.  
  368. * Program Modes::       Major modes for editing programs.
  369. * Lists::               Expressions with balanced parentheses.
  370.                          There are editing commands to operate on them.
  371. * Defuns::              Each program is made up of separate functions.
  372.                          There are editing commands to operate on them.
  373. * Grinding::            Adjusting indentation to show the nesting.
  374. * Matching::            Insertion of a close-delimiter flashes matching open.
  375. * Comments::            Inserting, filling and aligning comments.
  376. * Balanced Editing::    Inserting two matching parentheses at once, etc.
  377. * Lisp Completion::     Completion on symbol names in Lisp code.
  378. * Documentation::       Getting documentation of functions you plan to call.
  379. * Change Log::          Maintaining a change history for your program.
  380. * Tags::                Go directly to any function in your program in one
  381.                          command.  Tags remembers which file it is in.
  382. * Fortran::        Fortran mode and its special features.
  383. * Asm Mode::            Asm mode and its special features.
  384.  
  385. Indentation for Programs
  386.  
  387. * Basic Indent::
  388. * Multi-line Indent::   Commands to reindent many lines at once.
  389. * Lisp Indent::        Specifying how each Lisp function should be indented.
  390. * C Indent::        Choosing an indentation style for C code.
  391.  
  392. Tags Tables
  393.  
  394. * Tag Syntax::        Tag syntax for various types of code and text files.
  395. * Create Tags Table::    Creating a tags table with `etags'.
  396. * Select Tags Table::    How to visit a tags table.
  397. * Find Tag::        Commands to find the definition of a specific tag.
  398. * Tags Search::        Using a tags table for searching and replacing.
  399. * List Tags::        Listing and finding tags defined in a file.
  400.  
  401. Fortran Mode
  402.  
  403. * Motion: Fortran Motion.     Moving point by statements or subprograms.
  404. * Indent: Fortran Indent.     Indentation commands for Fortran.
  405. * Comments: Fortran Comments. Inserting and aligning comments.
  406. * Columns: Fortran Columns.   Measuring columns for valid Fortran.
  407. * Abbrev: Fortran Abbrev.     Built-in abbrevs for Fortran keywords.
  408.  
  409. Fortran Indentation
  410.  
  411. * Commands: ForIndent Commands. Commands for indenting Fortran.
  412. * Numbers:  ForIndent Num.      How line numbers auto-indent.
  413. * Conv:     ForIndent Conv.     Conventions you must obey to avoid trouble.
  414. * Vars:     ForIndent Vars.     Variables controlling Fortran indent style.
  415.  
  416. Compiling and Testing Programs
  417.  
  418. * Compilation::        Compiling programs in languages other than Lisp
  419.                         (C, Pascal, etc.)
  420. * Modes: Lisp Modes.   Various modes for editing Lisp programs, with
  421.                        different facilities for running the Lisp programs.
  422. * Libraries: Lisp Libraries.      Creating Lisp programs to run in XEmacs.
  423. * Eval: Lisp Eval.     Executing a single Lisp expression in XEmacs.
  424. * Debug: Lisp Debug.   Debugging Lisp programs running in XEmacs.
  425. * Interaction: Lisp Interaction.  Executing Lisp in an XEmacs buffer.
  426. * External Lisp::      Communicating through XEmacs with a separate Lisp.
  427.  
  428. Lisp Libraries
  429.  
  430. * Loading::        Loading libraries of Lisp code into XEmacs for use.
  431. * Compiling Libraries:: Compiling a library makes it load and run faster.
  432. * Mocklisp::        Converting Mocklisp to Lisp so XEmacs can run it.
  433.  
  434. Abbrevs
  435.  
  436. * Defining Abbrevs::  Defining an abbrev, so it will expand when typed.
  437. * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
  438. * Editing Abbrevs::   Viewing or editing the entire list of defined abbrevs.
  439. * Saving Abbrevs::    Saving the entire list of abbrevs for another session.
  440. * Dynamic Abbrevs::   Abbreviations for words already in the buffer.
  441.  
  442. Editing Pictures
  443.  
  444. * Basic Picture::         Basic concepts and simple commands of Picture Mode.
  445. * Insert in Picture::     Controlling direction of cursor motion
  446.                            after "self-inserting" characters.
  447. * Tabs in Picture::       Various features for tab stops and indentation.
  448. * Rectangles in Picture:: Clearing and superimposing rectangles.
  449.  
  450. Sending Mail
  451.  
  452. * Format: Mail Format.    Format of the mail being composed.
  453. * Headers: Mail Headers.  Details of allowed mail header fields.
  454. * Mode: Mail Mode.        Special commands for editing mail being composed.
  455.  
  456. Running Shell Commands from XEmacs
  457.  
  458. * Single Shell::         How to run one shell command and return.
  459. * Interactive Shell::    Permanent shell taking input via XEmacs.
  460. * Shell Mode::           Special XEmacs commands used with permanent shell.
  461.  
  462. Customization
  463.  
  464. * Minor Modes::     Each minor mode is one feature you can turn on
  465.                      independently of any others.
  466. * Variables::       Many XEmacs commands examine XEmacs variables
  467.                      to decide what to do; by setting variables,
  468.                      you can control their functioning.
  469. * Keyboard Macros:: A keyboard macro records a sequence of keystrokes
  470.                      to be replayed with a single command.
  471. * Key Bindings::    The keymaps say what command each key runs.
  472.                      By changing them, you can "redefine keys".
  473. * Syntax::          The syntax table controls how words and expressions
  474.                      are parsed.
  475. * Init File::       How to write common customizations in the `.emacs'
  476.                      file.
  477. * Audible Bell::    Changing how XEmacs sounds the bell.
  478. * Faces::           Changing the fonts and colors of a region of text.
  479. * X Resources::        X resources controlling various aspects of the
  480.                      behavior of XEmacs.
  481.  
  482. Variables
  483.  
  484. * Examining::           Examining or setting one variable's value.
  485. * Easy Customization::  Convenient and easy customization of variables.
  486. * Edit Options::        Examining or editing list of all variables' values.
  487. * Locals::              Per-buffer values of variables.
  488. * File Variables::      How files can specify variable values.
  489.  
  490. Keyboard Macros
  491.  
  492. * Basic Kbd Macro::     Defining and running keyboard macros.
  493. * Save Kbd Macro::      Giving keyboard macros names; saving them in files.
  494. * Kbd Macro Query::     Keyboard macros that do different things each use.
  495.  
  496. Customizing Key Bindings
  497.  
  498. * Keymaps::    Definition of the keymap data structure.
  499.                Names of XEmacs's standard keymaps.
  500. * Rebinding::  How to redefine one key's meaning conveniently.
  501. * Disabling::  Disabling a command means confirmation is required
  502.                 before it can be executed.  This is done to protect
  503.                 beginners from surprises.
  504.  
  505. The Syntax Table
  506.  
  507. * Entry: Syntax Entry.    What the syntax table records for each character.
  508. * Change: Syntax Change.  How to change the information.
  509.  
  510. The Init File, `~/.emacs'
  511.  
  512. * Init Syntax::     Syntax of constants in Emacs Lisp.
  513. * Init Examples::   How to do some things with an init file.
  514. * Terminal Init::   Each terminal type can have an init file.
  515.  
  516. Dealing with XEmacs Trouble
  517.  
  518. * Stuck Recursive::    `[...]' in mode line around the parentheses.
  519. * Screen Garbled::     Garbage on the screen.
  520. * Text Garbled::       Garbage in the text.
  521. * Unasked-for Search:: Spontaneous entry to incremental search.
  522. * Emergency Escape::   Emergency escape--
  523.                         What to do if XEmacs stops responding.
  524. * Total Frustration::  When you are at your wits' end.
  525.  
  526. 
  527. File: xemacs.info,  Node: License,  Next: Distrib,  Prev: Top,  Up: Top
  528.  
  529. GNU GENERAL PUBLIC LICENSE
  530. **************************
  531.  
  532.                        Version 1, February 1989
  533.  
  534.      Copyright (C) 1989 Free Software Foundation, Inc.
  535.      675 Mass Ave, Cambridge, MA 02139, USA
  536.      
  537.      Everyone is permitted to copy and distribute verbatim copies
  538.      of this license document, but changing it is not allowed.
  539.  
  540. Preamble
  541. ========
  542.  
  543.    The license agreements of most software companies try to keep users
  544. at the mercy of those companies.  By contrast, our General Public
  545. License is intended to guarantee your freedom to share and change free
  546. software--to make sure the software is free for all its users.  The
  547. General Public License applies to the Free Software Foundation's
  548. software and to any other program whose authors commit to using it.
  549. You can use it for your programs, too.
  550.  
  551.    When we speak of free software, we are referring to freedom, not
  552. price.  Specifically, the General Public License is designed to make
  553. sure that you have the freedom to give away or sell copies of free
  554. software, that you receive source code or can get it if you want it,
  555. that you can change the software or use pieces of it in new free
  556. programs; and that you know you can do these things.
  557.  
  558.    To protect your rights, we need to make restrictions that forbid
  559. anyone to deny you these rights or to ask you to surrender the rights.
  560. These restrictions translate to certain responsibilities for you if you
  561. distribute copies of the software, or if you modify it.
  562.  
  563.    For example, if you distribute copies of a such a program, whether
  564. gratis or for a fee, you must give the recipients all the rights that
  565. you have.  You must make sure that they, too, receive or can get the
  566. source code.  And you must tell them their rights.
  567.  
  568.    We protect your rights with two steps: (1) copyright the software,
  569. and (2) offer you this license which gives you legal permission to copy,
  570. distribute and/or modify the software.
  571.  
  572.    Also, for each author's protection and ours, we want to make certain
  573. that everyone understands that there is no warranty for this free
  574. software.  If the software is modified by someone else and passed on, we
  575. want its recipients to know that what they have is not the original, so
  576. that any problems introduced by others will not reflect on the original
  577. authors' reputations.
  578.  
  579.    The precise terms and conditions for copying, distribution and
  580. modification follow.
  581.  
  582.                          TERMS AND CONDITIONS
  583.  
  584.   1. This License Agreement applies to any program or other work which
  585.      contains a notice placed by the copyright holder saying it may be
  586.      distributed under the terms of this General Public License.  The
  587.      "Program", below, refers to any such program or work, and a "work
  588.      based on the Program" means either the Program or any work
  589.      containing the Program or a portion of it, either verbatim or with
  590.      modifications.  Each licensee is addressed as "you".
  591.  
  592.   2. You may copy and distribute verbatim copies of the Program's source
  593.      code as you receive it, in any medium, provided that you
  594.      conspicuously and appropriately publish on each copy an
  595.      appropriate copyright notice and disclaimer of warranty; keep
  596.      intact all the notices that refer to this General Public License
  597.      and to the absence of any warranty; and give any other recipients
  598.      of the Program a copy of this General Public License along with
  599.      the Program.  You may charge a fee for the physical act of
  600.      transferring a copy.
  601.  
  602.   3. You may modify your copy or copies of the Program or any portion of
  603.      it, and copy and distribute such modifications under the terms of
  604.      Paragraph 1 above, provided that you also do the following:
  605.  
  606.         * cause the modified files to carry prominent notices stating
  607.           that you changed the files and the date of any change; and
  608.  
  609.         * cause the whole of any work that you distribute or publish,
  610.           that in whole or in part contains the Program or any part
  611.           thereof, either with or without modifications, to be licensed
  612.           at no charge to all third parties under the terms of this
  613.           General Public License (except that you may choose to grant
  614.           warranty protection to some or all third parties, at your
  615.           option).
  616.  
  617.         * If the modified program normally reads commands interactively
  618.           when run, you must cause it, when started running for such
  619.           interactive use in the simplest and most usual way, to print
  620.           or display an announcement including an appropriate copyright
  621.           notice and a notice that there is no warranty (or else,
  622.           saying that you provide a warranty) and that users may
  623.           redistribute the program under these conditions, and telling
  624.           the user how to view a copy of this General Public License.
  625.  
  626.         * You may charge a fee for the physical act of transferring a
  627.           copy, and you may at your option offer warranty protection in
  628.           exchange for a fee.
  629.  
  630.      Mere aggregation of another independent work with the Program (or
  631.      its derivative) on a volume of a storage or distribution medium
  632.      does not bring the other work under the scope of these terms.
  633.  
  634.   4. You may copy and distribute the Program (or a portion or
  635.      derivative of it, under Paragraph 2) in object code or executable
  636.      form under the terms of Paragraphs 1 and 2 above provided that you
  637.      also do one of the following:
  638.  
  639.         * accompany it with the complete corresponding machine-readable
  640.           source code, which must be distributed under the terms of
  641.           Paragraphs 1 and 2 above; or,
  642.  
  643.         * accompany it with a written offer, valid for at least three
  644.           years, to give any third party free (except for a nominal
  645.           charge for the cost of distribution) a complete
  646.           machine-readable copy of the corresponding source code, to be
  647.           distributed under the terms of Paragraphs 1 and 2 above; or,
  648.  
  649.         * accompany it with the information you received as to where the
  650.           corresponding source code may be obtained.  (This alternative
  651.           is allowed only for noncommercial distribution and only if you
  652.           received the program in object code or executable form alone.)
  653.  
  654.      Source code for a work means the preferred form of the work for
  655.      making modifications to it.  For an executable file, complete
  656.      source code means all the source code for all modules it contains;
  657.      but, as a special exception, it need not include source code for
  658.      modules which are standard libraries that accompany the operating
  659.      system on which the executable file runs, or for standard header
  660.      files or definitions files that accompany that operating system.
  661.  
  662.   5. You may not copy, modify, sublicense, distribute or transfer the
  663.      Program except as expressly provided under this General Public
  664.      License.  Any attempt otherwise to copy, modify, sublicense,
  665.      distribute or transfer the Program is void, and will automatically
  666.      terminate your rights to use the Program under this License.
  667.      However, parties who have received copies, or rights to use
  668.      copies, from you under this General Public License will not have
  669.      their licenses terminated so long as such parties remain in full
  670.      compliance.
  671.  
  672.   6. By copying, distributing or modifying the Program (or any work
  673.      based on the Program) you indicate your acceptance of this license
  674.      to do so, and all its terms and conditions.
  675.  
  676.   7. Each time you redistribute the Program (or any work based on the
  677.      Program), the recipient automatically receives a license from the
  678.      original licensor to copy, distribute or modify the Program
  679.      subject to these terms and conditions.  You may not impose any
  680.      further restrictions on the recipients' exercise of the rights
  681.      granted herein.
  682.  
  683.   8. The Free Software Foundation may publish revised and/or new
  684.      versions of the General Public License from time to time.  Such
  685.      new versions will be similar in spirit to the present version, but
  686.      may differ in detail to address new problems or concerns.
  687.  
  688.      Each version is given a distinguishing version number.  If the
  689.      Program specifies a version number of the license which applies to
  690.      it and "any later version", you have the option of following the
  691.      terms and conditions either of that version or of any later
  692.      version published by the Free Software Foundation.  If the Program
  693.      does not specify a version number of the license, you may choose
  694.      any version ever published by the Free Software Foundation.
  695.  
  696.   9. If you wish to incorporate parts of the Program into other free
  697.      programs whose distribution conditions are different, write to the
  698.      author to ask for permission.  For software which is copyrighted
  699.      by the Free Software Foundation, write to the Free Software
  700.      Foundation; we sometimes make exceptions for this.  Our decision
  701.      will be guided by the two goals of preserving the free status of
  702.      all derivatives of our free software and of promoting the sharing
  703.      and reuse of software generally.
  704.  
  705.                                 NO WARRANTY
  706.  
  707.  10. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  708.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  709.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  710.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  711.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  712.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  713.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  714.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  715.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  716.      SERVICING, REPAIR OR CORRECTION.
  717.  
  718.  11. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  719.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  720.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  721.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  722.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  723.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  724.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  725.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  726.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  727.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  728.  
  729.                       END OF TERMS AND CONDITIONS
  730.  
  731. Appendix: How to Apply These Terms to Your New Programs
  732. =======================================================
  733.  
  734.    If you develop a new program, and you want it to be of the greatest
  735. possible use to humanity, the best way to achieve this is to make it
  736. free software which everyone can redistribute and change under these
  737. terms.
  738.  
  739.    To do so, attach the following notices to the program.  It is safest
  740. to attach them to the start of each source file to most effectively
  741. convey the exclusion of warranty; and each file should have at least the
  742. "copyright" line and a pointer to where the full notice is found.
  743.  
  744.      ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  745.      Copyright (C) 19YY  NAME OF AUTHOR
  746.      
  747.      This program is free software; you can redistribute it and/or modify
  748.      it under the terms of the GNU General Public License as published by
  749.      the Free Software Foundation; either version 1, or (at your option)
  750.      any later version.
  751.      
  752.      This program is distributed in the hope that it will be useful,
  753.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  754.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  755.      GNU General Public License for more details.
  756.      
  757.      You should have received a copy of the GNU General Public License
  758.      along with this program; if not, write to the Free Software
  759.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  760.  
  761.    Also add information on how to contact you by electronic and paper
  762. mail.
  763.  
  764.    If the program is interactive, make it output a short notice like
  765. this when it starts in an interactive mode:
  766.  
  767.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  768.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  769.      This is free software, and you are welcome to redistribute it
  770.      under certain conditions; type `show c' for details.
  771.  
  772.    The hypothetical commands `show w' and `show c' should show the
  773. appropriate parts of the General Public License.  Of course, the
  774. commands you use may be called something other than `show w' and `show
  775. c'; they could even be mouse-clicks or menu items--whatever suits your
  776. program.
  777.  
  778.    You should also get your employer (if you work as a programmer) or
  779. your school, if any, to sign a "copyright disclaimer" for the program,
  780. if necessary.  Here a sample; alter the names:
  781.  
  782.      Yoyodyne, Inc., hereby disclaims all copyright interest in the
  783.      program `Gnomovision' (a program to direct compilers to make passes
  784.      at assemblers) written by James Hacker.
  785.      
  786.      SIGNATURE OF TY COON, 1 April 1989
  787.      Ty Coon, President of Vice
  788.  
  789.    That's all there is to it!
  790.  
  791. 
  792. File: xemacs.info,  Node: Distrib,  Next: Intro,  Prev: License,  Up: Top
  793.  
  794. Distribution
  795. ************
  796.  
  797.    XEmacs is "free"; this means that everyone is free to use it and
  798. free to redistribute it on a free basis.  XEmacs is not in the public
  799. domain; it is copyrighted and there are restrictions on its
  800. distribution, but these restrictions are designed to permit everything
  801. that a good cooperating citizen would want to do.  What is not allowed
  802. is to try to prevent others from further sharing any version of XEmacs
  803. that they might get from you.  The precise conditions are found in the
  804. GNU General Public License that comes with XEmacs and also appears
  805. following this section.
  806.  
  807.    The easiest way to get a copy of XEmacs is from someone else who has
  808. it.  You need not ask for permission to do so, or tell any one else;
  809. just copy it.
  810.  
  811.    If you have access to the Internet, you can get the latest version of
  812. XEmacs from the anonymous FTP server `ftp.xemacs.org' in the directory
  813. `/pub/xemacs'.  It can also be found at numerous other archive sites
  814. around the world; check the file `etc/DISTRIB' in an XEmacs
  815. distribution for the latest known list.
  816.  
  817. Getting Other Versions of Emacs
  818. ===============================
  819.  
  820.    The Free Software Foundation's version of Emacs (called "FSF Emacs"
  821. in this manual and often referred to as "GNU Emacs") is available by
  822. anonymous FTP from `prep.ai.mit.edu'.
  823.  
  824.    Win-Emacs, an older version of XEmacs that runs on Microsoft Windows
  825. and Windows NT, is available by anonymous FTP from `ftp.netcom.com' in
  826. the directory `/pub/pe/pearl', or from `ftp.cica.indiana.edu' as the
  827. files `wemdemo*.zip' in the directory `/pub/pc/win3/demo'.
  828.  
  829. 
  830. File: xemacs.info,  Node: Intro,  Next: Glossary,  Prev: Distrib,  Up: Top
  831.  
  832. Introduction
  833. ************
  834.  
  835.    You are reading about XEmacs, an incarnation of the advanced,
  836. self-documenting, customizable, extensible real-time display editor
  837. Emacs.  XEmacs provides many powerful display and user-interface
  838. capabilities not found in other Emacsen and is mostly upwardly
  839. compatible with GNU Emacs from the Free Software Foundation (referred
  840. to as "FSF Emacs" in this manual).  XEmacs also comes standard with a
  841. great number of useful packages.
  842.  
  843.    We say that XEmacs is a "display" editor because normally the text
  844. being edited is visible on the screen and is updated automatically as
  845. you type.  *Note Display: Frame.
  846.  
  847.    We call XEmacs a "real-time" editor because the display is updated
  848. very frequently, usually after each character or pair of characters you
  849. type.  This minimizes the amount of information you must keep in your
  850. head as you edit.  *Note Real-time: Basic.
  851.  
  852.    We call XEmacs advanced because it provides facilities that go beyond
  853. simple insertion and deletion: filling of text; automatic indentation of
  854. programs; viewing two or more files at once; and dealing in terms of
  855. characters, words, lines, sentences, paragraphs, and pages, as well as
  856. expressions and comments in several different programming languages.
  857. It is much easier to type one command meaning "go to the end of the
  858. paragraph" than to find that spot with simple cursor keys.
  859.  
  860.    "Self-documenting" means that at any time you can type a special
  861. character, `Control-h', to find out what your options are.  You can
  862. also use `C-h' to find out what a command does, or to find all the
  863. commands relevant to a topic.  *Note Help::.
  864.  
  865.    "Customizable" means you can change the definitions of XEmacs
  866. commands.  For example, if you use a programming language in which
  867. comments start with `<**' and end with `**>', you can tell the XEmacs
  868. comment manipulation commands to use those strings (*note Comments::.).
  869. Another sort of customization is rearrangement of the command set.
  870. For example, you can set up the four basic cursor motion commands (up,
  871. down, left and right) on keys in a diamond pattern on the keyboard if
  872. you prefer.  *Note Customization::.
  873.  
  874.    "Extensible" means you can go beyond simple customization and write
  875. entirely new commands, programs in the Lisp language to be run by
  876. XEmacs's own Lisp interpreter.  XEmacs is an "on-line extensible"
  877. system: it is divided into many functions that call each other.  You can
  878. redefine any function in the middle of an editing session and replace
  879. any part of XEmacs without making a separate copy of all of XEmacs.
  880. Most of the editing commands of XEmacs are written in Lisp; the few
  881. exceptions could have been written in Lisp but are written in C for
  882. efficiency.  Only a programmer can write an extension to XEmacs, but
  883. anybody can use it afterward.
  884.  
  885. 
  886. File: xemacs.info,  Node: Frame,  Next: Keystrokes,  Prev: Concept Index,  Up: Top
  887.  
  888. The XEmacs Frame
  889. ****************
  890.  
  891. Frame
  892.      In many environments, such as a tty terminal, an XEmacs frame
  893.      literally takes up the whole screen.  If you are running XEmacs in
  894.      a multi-window system like the X Window System, the XEmacs frame
  895.      takes up one X window.  *Note XEmacs under X::, for more
  896.      information.
  897.  
  898. Window
  899.      No matter what environment you are running in, XEmacs allows you
  900.      to look at several buffers at the same time by having several
  901.      windows be part of the frame.  Often, the whole frame is taken up
  902.      by just one window, but you can split the frame into two or more
  903.      subwindows.  If you are running XEmacs under the X window system,
  904.      that means you can have several "XEmacs windows" inside the X
  905.      window that contains the XEmacs frame.  You can even have multiple
  906.      frames in different X windows, each with their own set of
  907.      subwindows.
  908.  
  909.    Each XEmacs frame displays a variety of information:
  910.    * The biggest area usually displays the text you are editing.  It may
  911.      consist of one window or of two or more windows if you need to
  912.      look at two buffers a the same time.
  913.  
  914.    * Below each text window's last line is a "mode line" (*note Mode
  915.      Line::.), which describes what is going on in that window.  The
  916.      mode line is in inverse video if the terminal supports that.  If
  917.      there are several XEmacs windows in one frame, each window has its
  918.      own mode line.
  919.  
  920.    * At the bottom of each XEmacs frame is the "echo area" or
  921.      "minibuffer window"(*note Echo Area::.).  It is used by XEmacs to
  922.      exchange information with the user.  There is only one echo area
  923.      per XEmacs frame.
  924.  
  925.    * If you are running XEmacs under the X Window System, a menu bar at
  926.      the top of the frame makes shortcuts to several of the commands
  927.      available (*note Pull-down Menus::.).
  928.  
  929.    You can subdivide the XEmacs frame into multiple text windows, and
  930. use each window for a different file (*note Windows::.).  Multiple
  931. XEmacs windows are tiled vertically on the XEmacs frame.  The upper
  932. XEmacs window is separated from the lower window by its mode line.
  933.  
  934.    When there are multiple, tiled XEmacs windows on a single XEmacs
  935. frame, the XEmacs window receiving input from the keyboard has the
  936. "keyboard focus" and is called the "selected window".  The selected
  937. window contains the cursor, which indicates the insertion point.  If
  938. you are working in an environment that permits multiple XEmacs frames,
  939. and you move the focus from one XEmacs frame into another, the selected
  940. window is the one that was last selected in that frame.
  941.  
  942.    The same text can be displayed simultaneously in several XEmacs
  943. windows, which can be in different XEmacs frames.  If you alter the text
  944. in an XEmacs buffer by editing it in one XEmacs window, the changes are
  945. visible in all XEmacs windows containing that buffer.
  946.  
  947. * Menu:
  948.  
  949. * Point::            The place in the text where editing commands operate.
  950. * Echo Area::           Short messages appear at the bottom of the frame.
  951. * Mode Line::            Interpreting the mode line.
  952. * XEmacs under X::      Some information on using XEmacs under the X
  953.                         Window System.
  954.  
  955. 
  956. File: xemacs.info,  Node: Point,  Next: Echo Area,  Prev: Frame,  Up: Frame
  957.  
  958. Point
  959. =====
  960.  
  961.    When XEmacs is running, the cursor shows the location at which
  962. editing commands will take effect.  This location is called "point".
  963. You can use keystrokes or the mouse cursor to move point through the
  964. text and edit the text at different places.
  965.  
  966.    While the cursor appears to point AT a character, you should think
  967. of point as BETWEEN two characters: it points BEFORE the character on
  968. which the cursor appears.  Sometimes people speak of "the cursor" when
  969. they mean "point," or speak of commands that move point as "cursor
  970. motion" commands.
  971.  
  972.    Each XEmacs frame has only one cursor.  When output is in progress,
  973. the cursor must appear where the typing is being done.  This does not
  974. mean that point is moving.  It is only that XEmacs has no way to show
  975. you the location of point except when the terminal is idle.
  976.  
  977.    If you are editing several files in XEmacs, each file has its own
  978. point location.  A file that is not being displayed remembers where
  979. point is.  Point becomes visible at the correct location when you look
  980. at the file again.
  981.  
  982.    When there are multiple text windows, each window has its own point
  983. location.  The cursor shows the location of point in the selected
  984. window.  The visible cursor also shows you which window is selected.  If
  985. the same buffer appears in more than one window, point can be moved in
  986. each window independently.
  987.  
  988.    The term `point' comes from the character `.', which was the command
  989. in TECO (the language in which the original Emacs was written) for
  990. accessing the value now called `point'.
  991.  
  992. 
  993. File: xemacs.info,  Node: Echo Area,  Next: Mode Line,  Prev: Point,  Up: Frame
  994.  
  995. The Echo Area
  996. =============
  997.  
  998.    The line at the bottom of the frame (below the mode line) is the
  999. "echo area".  XEmacs uses this area to communicate with the user:
  1000.  
  1001.    *   "Echoing" means printing out the characters that the user types.
  1002.      XEmacs never echoes single-character commands.  Multi-character
  1003.      commands are echoed only if you pause while typing them: As soon
  1004.      as you pause for more than one second in the middle of a command,
  1005.      all the characters of the command so far are echoed.  This is
  1006.      intended to "prompt" you for the rest of the command.  Once
  1007.      echoing has started, the rest of the command is echoed immediately
  1008.      as you type it.  This behavior is designed to give confident users
  1009.      fast response, while giving hesitant users maximum feedback.  You
  1010.      can change this behavior by setting a variable (*note Display
  1011.      Vars::.).
  1012.  
  1013.    *   If you issue a command that cannot be executed, XEmacs may print
  1014.      an "error message" in the echo area.  Error messages are
  1015.      accompanied by a beep or by flashing the frame.  Any input you
  1016.      have typed ahead is thrown away when an error happens.
  1017.  
  1018.    *   Some commands print informative messages in the echo area.  These
  1019.      messages look similar to error messages, but are not announced
  1020.      with a beep and do not throw away input.  Sometimes a message
  1021.      tells you what the command has done, when this is not obvious from
  1022.      looking at the text being edited.  Sometimes the sole purpose of a
  1023.      command is to print a message giving you specific information.
  1024.      For example, the command `C-x =' is used to print a message
  1025.      describing the character position of point in the text and its
  1026.      current column in the window.  Commands that take a long time
  1027.      often display messages ending in `...' while they are working, and
  1028.      add `done' at the end when they are finished.
  1029.  
  1030.    *   The echo area is also used to display the "minibuffer", a window
  1031.      that is used for reading arguments to commands, such as the name
  1032.      of a file to be edited.  When the minibuffer is in use, the echo
  1033.      area displays with a prompt string that usually ends with a colon.
  1034.      The cursor appears after the prompt.  You can always get out of
  1035.      the minibuffer by typing `C-g'.  *Note Minibuffer::.
  1036.  
  1037.